var mysql = require("mysql");
var connection = mysql.createConnection({
  host: "localhost",
  user: "root",
  password: "root",
  database: "hhpw"
});
connection.connect( (err)=> {
  if (err) {
    console.log("数据库连接失败!")
  } else {
    console.log("数据库连接成功!");
  }

})




module.exports = connection;